import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import echarts from "./utils/echarts";

import '@/permission' // permission control
import './styles/index.less'
// 在 main.js 中引入字体包
import '@/assets/fontFamily/font.css'

Vue.use(ElementUI);
Vue.config.productionTip = false;
// Vue.prototype.imgurls = "http://mpw.com";
// Vue.prototype.imgurls = "http://192.168.110.15" 
Vue.prototype.imgurls = "https://ympai.net";

Vue.prototype.$echarts = echarts;

new Vue({
  router,
  store,
  render: (h) => h(App),
  // mounted() {
  //   document.dispatchEvent(new Event('render-event'));
  // }
}).$mount("#app");
